package com.inet.a03_edittext;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = "inet---";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void btnClick(View view) {
        EditText et01 = findViewById(R.id.et01);
        Log.d(TAG, "btnClick: " + et01.getText().toString());
        System.out.println("et01.getText().toString() = " + et01.getText().toString());

        EditText et02 = findViewById(R.id.et02);
        Log.d(TAG, "btnClick: " + et02.getText().toString());
        System.out.println("et02.getText().toString() = " + et02.getText().toString());
    }
}